package com.iking.housekeeping.entity.menu;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

import com.iking.housekeeping.httpbean.menu.resbean.ReturnSysMenu;

/**
 * 系统菜单
 * @author Administrator
 *
 */
public class SysMenu {
	
	/**
	 * 菜单ID
	 */
    private String fId;
    
    /**
     * 菜单的图标
     */
    private String fMenuIcon;
    
    /**
     * 菜单的名字
     */
    @NotBlank(message="菜单的名字不能为空")
    private String fMenuName;
    
    /**
     * 菜单的地址
     */
    private String fAddress;
    
    /**
     * 菜单编号
     */
    
    private Boolean fIsButton;
    
    public Boolean getfIsButton() {
		return fIsButton;
	}

	public void setfIsButton(Boolean fIsButton) {
		this.fIsButton = fIsButton;
	}

	private String fMenuCode;

    private String fMenuPCode;

    private Boolean fIsAvailable;

    private Boolean fIsDeleted;

    private Date fCreateTime;

    private Date fUpdateTime;

    public SysMenu() {
    	
    }
    public SysMenu (ReturnSysMenu returnSysMenu) {
    	
		this.fId = returnSysMenu.getfId();
		this.fMenuIcon = returnSysMenu.getfMenuIcon();
		this.fMenuName = returnSysMenu.getfMenuName();
		this.fAddress = returnSysMenu.getfAddress();
		this.fMenuCode = returnSysMenu.getfMenuCode();
		this.fMenuPCode = returnSysMenu.getfMenuPCode();
		this.fIsButton = returnSysMenu.getfIsButton();
		
		
    }
    public String getfId() {
        return fId;
    }

    public void setfId(String fId) {
        this.fId = fId;
    }

    public String getfMenuIcon() {
        return fMenuIcon;
    }

    public void setfMenuIcon(String fMenuIcon) {
        this.fMenuIcon = fMenuIcon == null ? null : fMenuIcon.trim();
    }

    public String getfMenuName() {
        return fMenuName;
    }

    public void setfMenuName(String fMenuName) {
        this.fMenuName = fMenuName == null ? null : fMenuName.trim();
    }

    public String getfAddress() {
        return fAddress;
    }

    public void setfAddress(String fAddress) {
        this.fAddress = fAddress == null ? null : fAddress.trim();
    }

    public String getfMenuCode() {
        return fMenuCode;
    }

    public void setfMenuCode(String fMenuCode) {
        this.fMenuCode = fMenuCode == null ? null : fMenuCode.trim();
    }

    public String getfMenuPCode() {
        return fMenuPCode;
    }

    public void setfMenuPCode(String fMenuPCode) {
        this.fMenuPCode = fMenuPCode == null ? null : fMenuPCode.trim();
    }

    public Boolean getfIsAvailable() {
        return fIsAvailable;
    }

    public void setfIsAvailable(Boolean fIsAvailable) {
        this.fIsAvailable = fIsAvailable;
    }

    public Boolean getfIsDeleted() {
        return fIsDeleted;
    }

    public void setfIsDeleted(Boolean fIsDeleted) {
        this.fIsDeleted = fIsDeleted;
    }

    public Date getfCreateTime() {
        return fCreateTime;
    }

    public void setfCreateTime(Date fCreateTime) {
        this.fCreateTime = fCreateTime;
    }

    public Date getfUpdateTime() {
        return fUpdateTime;
    }

    public void setfUpdateTime(Date fUpdateTime) {
        this.fUpdateTime = fUpdateTime;
    }
}